﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="companyuser_list.aspx.cs" Inherits="EZCRS.HCMS.Web.manage.companyuser.companyuser_list" %>
<%@ Register Src="~/manage/usercontrol/jspage.ascx" TagName="jspage" TagPrefix="uc1" %>
<%@ Register Src="../usercontrol/titlepage.ascx" TagName="titlepage" TagPrefix="uc2" %>
<%@ Register assembly="Book38.Net.CustomControl" namespace="Book38.Net.CustomControl" tagprefix="cc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script language="javascript" type="text/javascript" src="../../Common/base_grid.js"></script>
</head>
<body onload="Page_Load('First')">
    <form id="form1" runat="server">
        <uc2:titlepage id="Titlepage1" runat="server" inittitle="<%$ Resources:Site, LabCompanyUserModify %>"></uc2:titlepage>
           
            <table width="100%" cellpadding="0" cellspacing="0" class="main-table" style="text-align: center;">
                <tr class="line-even">
                    <td style="width: 30%; text-align: right;">
                        <asp:Label ID="label1" runat="server" Text="<%$Resources:Site, LabCompanyUserofCompany%>"></asp:Label>：</td>
                    <td>
                        <asp:DropDownList ID="dlist_UserofCompany" runat="server">
                        </asp:DropDownList></td>
                    <td style="text-align: right;">
                        <asp:Label ID="label2" runat="server" Text="<%$Resources:Site, LabCompanyUserCardNum %>"></asp:Label>：</td>
                    <td style="width: 200px;">
                        <cc2:WebTextBox ID="txt_UserCarkNum" runat="server" CssClass="text-line" Width="200px"></cc2:WebTextBox></td>
                    <td>
                        <asp:Button ID="BtnSearch" runat="server" CssClass="bttn" Text="<%$Resources:Site, ButtonSearch%>" />&nbsp;&nbsp;</td>
                </tr>
            </table>
<input type="hidden" id="txt_sql" value="" />
    </form><br />
    <uc1:jspage ID="Jspage1" runat="server" />
    <script type="text/jscript" language="javascript">
        function $(element){
            return $F(element);
        }
        //debugger
        function Page_Load(pageindex){
            var sqlStr = $F("txt_UserCarkNum").value;
            var droplist = $F("dlist_UserofCompany");
            with(droplist){
                _selectedval = options[selectedIndex].value;
            }
            sqlStr +="|"+_selectedval;
            //alert(sqlStr);
            pageindex=pageIndexSetting(pageindex);    //pageindex的设定
            //alert(croptype);
            EZCRS.HCMS.Web.manage.companyuser.companyuser_list.Getrecord(pageindex,sqlStr,gid,pid,setTable);
            pageLastSetting(sqlStr,pageindex);
        }
        AjaxPro.timeoutPeriod = 40000;
    var l = $F("loadinfo");
    AjaxPro.onLoading = function(b)
    {
        l.innerHTML="<img src=\"../../Image/loading.gif\" alt=\"Loading\" align=\"absmiddle\" /><%= Resources.Site.LabLoadInfo %>";
    }    
    AjaxPro.onError = function(e) 
    {
        l.innerHTML="<%= Resources.Site.LabLoadErrInfo %>";
    } 
    AjaxPro.onTimeout = function(t) 
    {
        l.innerHTML="<%= Resources.Site.LabLoadErrInfo %>";
    }
    </script>
</body>
</html>
